[(#REM) This file is used for auto creation of payment form form extension data and redirecting to paysystem page 
    Following parameters must be provided via get request:
    - id_extension
    - id_order
]

<BOUCLE_test(CONDITION){si #ENV{id_extension}|and{#ENV{id_order}}|oui}>
	<html>
		<head>
			#INSERT_HEAD
		</head>
	
	<body>	
	
	<div id="payform" style="display: none;">
		#ALOHACART_EXTENSION_DATA{#ENV{id_extension}, #ARRAY{id_order, #ENV{id_order}}}
	</div>
    
    <div style="font-size: 16px;"><:alohacart:payment_auto_redirected:></div>
	
	<script type="text/javascript">
	jQuery(document).ready(function(){
	    // Payment form auto submit
		jQuery('#payform form').submit();
	})
	</script>
	
	</body>
	</html>
</BOUCLE_test>
	


